home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_7.lha
/
3_7
/
3_7fgtst.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
531b
|
31 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include <error.h>
include "3_7f.c"
truct sp
{ char *a, *b; } x[] = {
{ "abcd", "abcd" },
{ "abc", "abcd" },
{ "abcd", "abc" },
{ "abdc", "abcd" },
{ "abdc", "abcda" },
{ "abdc", "abc" },
{ 0, 0 }
};
ain()
for (sp *xp = x; xp->a; xp++)
{
cout << "a='" << xp->a << "', b='" << xp->b << "'\n";
cout << "cmp=" << strcmp(xp->a, xp->b) << "\n";
}
return 0;